package edu.wuster.blog.entity;

import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;


/*
 * 接收用户修改密码前端传来的数据实体
 * */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserResetPassword {
    //用于修改密码时，封装前端传递过来的数据
    private Integer id;

    @NotBlank(message = "密码不能为空")
    private String newPassword;

    @NotBlank(message = "密码不能为空")
    private String newPassword2;
}
